* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

  database connect time: 0.0004 seconds. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	14.12.2021 	00:41:11 	lx 	(1. Application process)

Tcp server 2 starting. 	14.12.2021 	00:41:11 	_lx_SERVER 	(4. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	14.12.2021 	00:41:11 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Fixed. 	14.12.2021 	00:41:11 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Available. 	14.12.2021 	00:41:11 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	14.12.2021 	00:41:11 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	14.12.2021 	00:41:11 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	14.12.2021 	00:41:11 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

  database connect time: 0.0003 seconds. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.12.2021 	00:41:12 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013661afa0, size: 400. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

--- server started in 0.005 seconds, 2021-12-14 00:41:13, used memory 3046.0 kb --- 	 5. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.12.2021 	00:41:13 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-14 00:41:35
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 715
Content-Uncompressed-Length: 988

LZ4. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

  database connect time: 0.0001 seconds. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.sales_order_id - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.project_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.state - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.company_id - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.sales_price_total - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.vat_total - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.currency_id - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.notes - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.additional_data - fldType: string - arrName: _lx_atExe7. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.record_id - fldType: string - arrName: _lx_atExe8. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' ORDER BY so.sales_order_id DESC LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	14.12.2021 	00:41:35 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00155
  
SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.sales_order_id - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.project_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.state - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.company_id - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.sales_price_total - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.vat_total - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.currency_id - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.notes - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.additional_data - fldType: string - arrName: _lx_atExe7. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

**** so.record_id - fldType: string - arrName: _lx_atExe8. 	14.12.2021 	00:41:35 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' ORDER BY so.sales_order_id DESC LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	14.12.2021 	00:41:35 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

**** so.sales_order_id - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.project_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.state - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.company_id - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.sales_price_total - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.vat_total - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.currency_id - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.notes - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.additional_data - fldType: string - arrName: _lx_atExe7. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

**** so.record_id - fldType: string - arrName: _lx_atExe8. 	14.12.2021 	00:41:36 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' ORDER BY so.sales_order_id DESC LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	14.12.2021 	00:41:36 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

**** so.our_reference - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.sales_order_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.customer_project - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.state - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.company_id - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.order_date - fldType: date - arrName: _lx_adExe1. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.sales_price_total - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.vat_total - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.currency_id - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.terms_of_payment_id - fldType: string - arrName: _lx_atExe7. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.your_reference - fldType: string - arrName: _lx_atExe8. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.notes - fldType: string - arrName: _lx_atExe9. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

**** so.record_id - fldType: string - arrName: _lx_atExe10. 	14.12.2021 	00:44:20 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.company_id = '1057' AND so.state NOT IN ('LO','PE') ORDER BY so.sales_order_id INTO :_lx_atExe1
 - original query: SELECT so.our_reference, so.sales_order_id, so.customer_project, so.state, so.company_id, so.order_date, so.sales_price_total, so.vat_total, so.currency_id, so.terms_of_payment_id, so.your_reference, so.notes, so.record_id FROM sales_order so  WHERE so.company_id = '1057' AND so.state NOT IN ('LO','PE')  ORDER BY so.sales_order_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order.json. 	14.12.2021 	00:44:20 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

**** so.our_reference - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.sales_order_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.customer_project - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.state - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.company_id - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.order_date - fldType: date - arrName: _lx_adExe1. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.sales_price_total - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.vat_total - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.currency_id - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.terms_of_payment_id - fldType: string - arrName: _lx_atExe7. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.your_reference - fldType: string - arrName: _lx_atExe8. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.notes - fldType: string - arrName: _lx_atExe9. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

**** so.record_id - fldType: string - arrName: _lx_atExe10. 	14.12.2021 	00:49:02 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.company_id = '1057' AND so.state NOT IN ('LO','PE') ORDER BY so.sales_order_id INTO :_lx_atExe1
 - original query: SELECT so.our_reference, so.sales_order_id, so.customer_project, so.state, so.company_id, so.order_date, so.sales_price_total, so.vat_total, so.currency_id, so.terms_of_payment_id, so.your_reference, so.notes, so.record_id FROM sales_order so  WHERE so.company_id = '1057' AND so.state NOT IN ('LO','PE')  ORDER BY so.sales_order_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order.json. 	14.12.2021 	00:49:02 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

**** so.our_reference - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.sales_order_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.customer_project - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.state - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.company_id - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.order_date - fldType: date - arrName: _lx_adExe1. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.sales_price_total - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.vat_total - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.currency_id - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.terms_of_payment_id - fldType: string - arrName: _lx_atExe7. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.your_reference - fldType: string - arrName: _lx_atExe8. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.notes - fldType: string - arrName: _lx_atExe9. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

**** so.record_id - fldType: string - arrName: _lx_atExe10. 	14.12.2021 	00:49:11 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.company_id = '1057' AND so.state NOT IN ('LO','PE') ORDER BY so.sales_order_id INTO :_lx_atExe1
 - original query: SELECT so.our_reference, so.sales_order_id, so.customer_project, so.state, so.company_id, so.order_date, so.sales_price_total, so.vat_total, so.currency_id, so.terms_of_payment_id, so.your_reference, so.notes, so.record_id FROM sales_order so  WHERE so.company_id = '1057' AND so.state NOT IN ('LO','PE')  ORDER BY so.sales_order_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order.json. 	14.12.2021 	00:49:11 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

**** pr.product_group - fldType: string - arrName: _lx_atExe1. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.product_id - fldType: string - arrName: _lx_atExe2. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.json_data.project_id - fldType: string - arrName: _lx_atExe3. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.name - fldType: string - arrName: _lx_atExe4. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.sales_price - fldType: number - arrName: _lx_arExe1. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.stock_balance - fldType: number - arrName: _lx_arExe2. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.info - fldType: string - arrName: _lx_atExe5. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

**** pr.record_id - fldType: string - arrName: _lx_atExe6. 	14.12.2021 	00:49:23 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT DISTINCT pr.product_group, pr.product_id, pr.json_data->>'project_id', pr.name, pr.sales_price, pr.stock_balance, pr.info, pr.record_id
 FROM sales_order_row sor
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id
 WHERE so.company_id IN ('1057')
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 	14.12.2021 	00:49:24 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT DISTINCT pr.product_group, pr.product_id, pr.json_data->>'project_id', pr.name, pr.sales_price, pr.stock_balance, pr.info, pr.record_id  FROM sales_order_row sor  LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id  LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id  WHERE so.company_id IN ('1057')  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	14.12.2021 	00:49:24 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

sql: Error 0, Generic parsing error. Parsing failed in or around the following substring interval - ( 62, 64 ) - ...ata->>'pr... (SQLS 1301)

SELECT DISTINCT pr.product_group, pr.product_id, pr.json_data->>'project_id', pr.name, pr.sales_price, pr.stock_balance, pr.info, pr.record_id
 FROM sales_order_row sor
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id
 WHERE so.company_id IN ('1057')
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
'
SELECT DISTINCT pr.product_group, pr.product_id, pr.json_data->>'project_id', pr.name, pr.sales_price, pr.stock_balance, pr.info, pr.record_id
 FROM sales_order_row sor
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id
 WHERE so.company_id IN ('1057')
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
'
 	14.12.2021 	00:49:24 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4d execute sql error -1: Error 0, Generic parsing error. Parsing failed in or around the following substring interval - ( 62, 64 ) - ...ata->>'pr... (SQLS 1301)

SELECT DISTINCT pr.product_group, pr.product_id, pr.json_data->>'project_id', pr.name, pr.sales_price, pr.stock_balance, pr.info, pr.record_id
 FROM sales_order_row sor
 LEFT OUTER JOIN product pr ON pr.product_id = sor.product_id
 LEFT OUTER JOIN sales_order so ON so.sales_order_id = sor.sales_order_id
 WHERE so.company_id IN ('1057')
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6. 	14.12.2021 	00:49:24 	_lx_SERVER 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'co.modify_time', sql:
	SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
 	14.12.2021 	00:49:45 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

sql: Error -1, Column 'MODIFY_TIME' does not exist. (SQLS 1102)
Failed to validate column 'MODIFY_TIME'. (SQLS 1717)
Failed to validate SELECT item 6. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Column 'MODIFY_TIME' does not exist.Failed to validate SELECT command. (SQLS 1102)

SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
 	14.12.2021 	00:49:45 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4d execute sql error -1: Error -1, Column 'MODIFY_TIME' does not exist. (SQLS 1102)
Failed to validate column 'MODIFY_TIME'. (SQLS 1717)
Failed to validate SELECT item 6. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Column 'MODIFY_TIME' does not exist.Failed to validate SELECT command. (SQLS 1102)

SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6. 	14.12.2021 	00:49:45 	_lx_SERVER 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'co.modify_time', sql:
	SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
 	14.12.2021 	00:49:50 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

sql: Error -1, Column 'MODIFY_TIME' does not exist. (SQLS 1102)
Failed to validate column 'MODIFY_TIME'. (SQLS 1717)
Failed to validate SELECT item 6. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Column 'MODIFY_TIME' does not exist.Failed to validate SELECT command. (SQLS 1102)

SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
 	14.12.2021 	00:49:50 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 887 bytes ***. 	14.12.2021 	00:52:57 	lx 	(4. Tcp Server 2)

closing socket '77'. 	14.12.2021 	00:52:57 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'co.modify_time', sql:
	SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
 	14.12.2021 	00:53:16 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

sql: Error -1, Column 'MODIFY_TIME' does not exist. (SQLS 1102)
Failed to validate column 'MODIFY_TIME'. (SQLS 1717)
Failed to validate SELECT item 6. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Column 'MODIFY_TIME' does not exist.Failed to validate SELECT command. (SQLS 1102)

SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
 	14.12.2021 	00:53:16 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'co.modify_time', sql:
	SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
 	14.12.2021 	00:55:13 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

sql: Error -1, Column 'MODIFY_TIME' does not exist. (SQLS 1102)
Failed to validate column 'MODIFY_TIME'. (SQLS 1717)
Failed to validate SELECT item 6. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Column 'MODIFY_TIME' does not exist.Failed to validate SELECT command. (SQLS 1102)

SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
'
 	14.12.2021 	00:55:13 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 28, first value: '1045'
 - query name: new:form/nc/erp-sync/query/customer.json. 	14.12.2021 	00:59:03 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 27, first value: '1045'
 - query name: new:form/nc/erp-sync/query/customer.json. 	14.12.2021 	00:59:30 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	14.12.2021 	01:00:10 	_lx_SERVER 	(10. tbl_ 9)

*** tcp close for sock 75, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

closing socket '75'. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

closing socket '76'. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

 -- Server statistics --
answerCount:          19
poll.fd_count:        2
pollCount:            50896
pollInCount:          22
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  5/3
totalBytesReceived:   17614
totalBytesSent:       23455. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 78
. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

closing socket '78'. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 77
. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

closing socket '77'. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x013661afa0. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013661afa0, size: 400. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

--- server stopped ---. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x013661afa0. 	14.12.2021 	01:00:10 	lx 	(4. Tcp Server 2)

Tcp server 2 stopped. 	14.12.2021 	01:00:10 	_lx_SERVER 	(4. Tcp Server 2)

Tcp server 2 starting. 	14.12.2021 	01:00:13 	_lx_SERVER 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

  database connect time: 0.0002 seconds. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01364ac4c0, size: 400. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

--- server started in 0.002 seconds, 2021-12-14 01:00:15, used memory 2993.5 kb --- 	 5. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.12.2021 	01:00:15 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-14 01:00:25
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 591
Content-Uncompressed-Length: 779

LZ4. 	14.12.2021 	01:00:25 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	01:00:25 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.12.2021 	01:00:25 	lx 	(4. Tcp Server 2)

  database connect time: 0.0001 seconds. 	14.12.2021 	01:00:25 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.12.2021 	01:00:25 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 28, first value: '1045'
 - query name: new:form/nc/erp-sync/query/customer.json. 	14.12.2021 	01:00:25 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00076
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email
 FROM company co
 WHERE co.transfer_id <> ''. 	14.12.2021 	01:00:25 	lx 	(4. Tcp Server 2)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	14.12.2021 	01:02:58 	lx 	(4. Tcp Server 2)

closing socket '78'. 	14.12.2021 	01:02:58 	lx 	(4. Tcp Server 2)

*** tcp close for sock 79, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 861 bytes ***. 	14.12.2021 	01:02:58 	lx 	(4. Tcp Server 2)

closing socket '79'. 	14.12.2021 	01:02:58 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 28, first value: '1045'
 - query name: new:form/nc/erp-sync/query/customer.json. 	14.12.2021 	01:03:12 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 28, first value: '1045'
 - query name: new:form/nc/erp-sync/query/customer.json. 	14.12.2021 	01:04:44 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	14.12.2021 	01:09:56 	_lx_SERVER 	(5. tbl_ 7)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

closing socket '76'. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

closing socket '77'. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

 -- Server statistics --
answerCount:          3
poll.fd_count:        1
pollCount:            26312
pollInCount:          6
pollOutCount:         0
pollCloseCount:       2
pollErrCount:         0
fd add/remove count:  5/4
totalBytesReceived:   2563
totalBytesSent:       7365. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 78
. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

closing socket '78'. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01364ac4c0. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01364ac4c0, size: 400. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

--- server stopped ---. 	14.12.2021 	01:09:56 	lx 	(4. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x01364ac4c0. 	14.12.2021 	01:09:57 	lx 	(4. Tcp Server 2)

Tcp server 2 stopped. 	14.12.2021 	01:09:57 	_lx_SERVER 	(4. Tcp Server 2)

Tcp server 2 starting. 	14.12.2021 	01:09:59 	_lx_SERVER 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	01:10:00 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.12.2021 	01:10:00 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.12.2021 	01:10:00 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	01:10:00 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

  database connect time: 0.0002 seconds. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01511af620, size: 400. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

--- server started in 0.002 seconds, 2021-12-14 01:10:01, used memory 2993.5 kb --- 	 5. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.12.2021 	01:10:01 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-14 01:10:08
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 590
Content-Uncompressed-Length: 779

LZ4. 	14.12.2021 	01:10:08 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.12.2021 	01:10:08 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.12.2021 	01:10:08 	lx 	(4. Tcp Server 2)

  database connect time: 0.0001 seconds. 	14.12.2021 	01:10:08 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.12.2021 	01:10:08 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 28, first value: '1045'
 - query name: new:form/nc/erp-sync/query/customer.json. 	14.12.2021 	01:10:08 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00078
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email
 FROM company co
 WHERE co.transfer_id <> ''. 	14.12.2021 	01:10:08 	lx 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' ORDER BY so.sales_order_id DESC LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	14.12.2021 	01:31:24 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' ORDER BY so.sales_order_id DESC LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	14.12.2021 	01:31:24 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' ORDER BY so.sales_order_id DESC LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	14.12.2021 	01:31:24 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

